<?php
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/inc/session_check.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/class.QuickTest.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/Common.php");

$QuickTest = new QuickTest();
$lessonid=Common::is_empty($_GET["lessonid"], 0);
$lessonidLst=explode(",", $lessonid);
$bid=Common::is_empty($_GET["bid"], 0);
$accordingby=Common::is_empty($_GET["accordingby"], 0);
$quizType=Common::is_empty($_GET["quizType"], 0);

$_SESSION["recitlist"]=$QuickTest->GetWordListWithErrorrate($lessonidLst,$bid);
$_SESSION["accordingby"]=$accordingby;
$_SESSION["quizType"]=$quizType;

include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/QuickTestAction.php");
$wid=$QuickTest->GetNextFromListFromSession();
$correctItem = null;//正确项
$Options = $QuickTest->GetOptions($wid, $correctItem);
$QuickTest->display($Options,$correctItem,$quizType); 